import { getDict } from '@/api/modules/auth/dict.data';
import type { DICT_ENUM } from '@/enum/system';
import type { LabeledValue } from 'ant-design-vue/es/select';

export const getDictList = async (type: DICT_ENUM): Promise<LabeledValue[]> => {
  const { data } = await getDict(type);
  let result = data.data;
  return result;
};
